﻿using _06_坦克大战_正式.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;

namespace _06_坦克大战_正式
{
    internal class SoundManager
    {
        private static SoundPlayer startPlayer = new SoundPlayer();

        private static SoundPlayer addPlayer = new SoundPlayer();

        public static SoundPlayer expPlayer = new SoundPlayer();

        public static SoundPlayer firePlayer = new SoundPlayer();

        public static SoundPlayer hitPlayer = new SoundPlayer();
        public static void InitSound()
        {
            startPlayer.Stream = Resources.start;
            addPlayer.Stream = Resources.add;
            expPlayer.Stream = Resources.blast;
            firePlayer.Stream = Resources.fire;
            hitPlayer.Stream = Resources.hit;

        }
        public static void PlayStart()
        {
            startPlayer.Play();
        }
        public static void Playadd()
        {
            addPlayer.Play();
        }
        public static void Playblast()
        {
            expPlayer.Play();
        }
        public static void Playfire()
        {
            firePlayer.Play();
        }
        public static void Playhit()
        {
            hitPlayer.Play();
        }
    }
}
